#pragma once

#include "h5SaveFile.h"
#include "../Md5/dlmd5.h"

#include "curl/curl.h"

#define PW_MD5KEY	"ckjal234uivhu453yiva2342342fajiova" //md5key

const std::string H5_FAILURE = "0";
const std::string H5_SUCCESS = "1";

class CH5DataProcess
{

public:
	CH5DataProcess();
	~CH5DataProcess();

public:
	void H5Process(char const * content, int len);

	void CalMd5Key(std::string& strAuthMd5);

	void SendHttpReply(std::string result);

private:
	CH5SaveFile _M_h5SaveFile;

	std::string url = "http://zk.dalongyun.com/api/index.php/serverMange/archiveNotifyToH5";

	std::string uname = "";

	std::string task_id = "";

	std::string innerip = "";
};
